<?php
	include 'function.php';
	$mod = getRequest('m');
	$act = getRequest('a');
	if(empty($mod)||empty($act)){ 
		echo 'fail';
		exit;
	}
	
	if(!empty($mod) && !empty($act)){ //兼容TP方法调用
		$mid = getRequest('mid');
		$url = $_SERVER['SERVER_NAME']."/admin/zjx/index.php?s=";
		$url .= '/'.$mod.'/'.$act.'/mid/'.$mid;
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, $url );
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		$str = curl_exec( $ch );
		echo $str;
		curl_close($ch);
//		$str = file_get_contents($url); 
//		echo $str;
		exit;
	}
	
	